<?php
/**
 * Invision Power Board
 * Action controller for done page
 */

class action_done
{
	var $install;
	
	function action_done( & $install )
	{
		$this->install =& $install;
	}
	
	function run()
	{
		//-----------------------------------------
		// Lock installer
		//-----------------------------------------
		$this->install->lock_installer();
		//-----------------------------------------
		// Show page
		//-----------------------------------------
		
$dir ='http://' . $_SERVER["HTTP_HOST"] . '' .dirname("$_SERVER[SCRIPT_NAME]") .'/';
$ExPath = explode("/", $dir);
$ExCpath = Count($ExPath)-2;
for ($i=0; $i < $ExCpath; $i++) {
if ($i == 0){
$Fpath = $ExPath[0];
}else{
$Fpath = $Fpath."/".$ExPath[$i];
}
}
$path = $Fpath;

if($this->install->saved_data['license_error'] == true) {
$info = 'Your installation of oPanel has not been licensed<br />';
} else { $info = ''; }
		$this->install->template->append( $this->install->template->install_done( $path, $this->install->check_lock(), $info ) );
		$this->install->template->next_action = '';
		$this->install->template->hide_next   = 1;		

	}
}

?>